import './global.less';
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')
// const forceLandscapeScreenHandle = () => {
//     const body = document.getElementsByTagName('body')[0];
//     const html = document.getElementsByTagName('html')[0];
//     const width = html.clientWidth;
//     const height = html.clientHeight;
//     const max = width > height ? width : height;
//     const min = width > height ? height : width;
//     body.style.width = max + "px";
//     body.style.height = min + "px";
// }
// forceLandscapeScreenHandle()
// window.addEventListener("resize", forceLandscapeScreenHandle)